//
//  Common.swift
//  Swift---新浪微博练习代码
//
//  Created by Mr.Yan on 2017/6/29.
//  Copyright © 2017年 Mr.Yan. All rights reserved.
//

import UIKit

//RGB颜色
func RGB(r: CGFloat, g: CGFloat, b:CGFloat, alpha: CGFloat = 1) ->UIColor{

    return UIColor(red: r/255, green: b/255, blue: b/255, alpha: alpha)

}

//随机颜色
func randomColor() -> UIColor{

    //随机数
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)

    let b = CGFloat(arc4random()%256)

    return RGB(r: r, g: g, b: b)
}
//app字体大小
let LYSmallFontSize: CGFloat = 10

let LYNormalFontSize: CGFloat = 14

let LYBigFontSize: CGFloat = 18

//主题色
let LYThemeCoclor = UIColor.orange
